package com.aaa.dao;

import com.aaa.pojo.BankNumber;
import com.aaa.pojo.ChangeMoney;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.security.access.method.P;
import org.springframework.stereotype.Repository;

import java.math.BigDecimal;
import java.util.List;

@Mapper
@Repository
public interface ChangeMoneyDao {
    //零钱理财
    public List<ChangeMoney> selectAllMoneys();
    ChangeMoney selectByCid(Integer cid);
    public Boolean addChangeMoney(@Param("u_id")Integer u_id,@Param("c_id") Integer c_id,@Param("amount") Double amount);
    public void addRecordMoney(@Param("amount") Double amount, @Param("c_name") String c_name);
    public List<BankNumber> selectByBid(@Param("uid") Integer uid);
    public Boolean deductionBank(@Param("bank_id") Integer bank_id,@Param("money") Double money);
}
